#include <cstddef>
#include <iostream>
#include <string>
//#include <format>

using namespace std;

int main()
{
	const string toParse{ "  123FUSD" };
	size_t index{ 0 };
	int value{ stoi(toParse, &index) };
	printf("Parsed value: %d\n", value);
	printf("First non-parsed character: '%c'", toParse[index]);
}